// 选择登入还是注册
<template>
  <div class="lorR-contains">
      <div class="lorR-box">
          <div class="lorR-top-contains">
              <!-- <a class="top-con" href="">登 入</a> -->
              <router-link class="top-con" active-class="active" to="/lorR/login">登 入</router-link>
              <div class="top-img"><img src="../assets/logo.png" alt=""></div>
              <router-link class="top-con" active-class="active" to="/lorR/register">注 册</router-link>
          </div>
          <div class="forms">
              <router-view></router-view>
          </div>
      </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="less" scoped>
.lorR-contains{
    height: 100%;
    background-color: #2e4b6d;
    position: relative;
}
.lorR-box{
    width: 450px;
    // background-color: #fff;
    position: absolute;
    left: 50%;
    top:20%;
    transform: translate(-50%,-50%);
}
.lorR-top-contains{
    display: flex;
    justify-content: space-between;
    border: 1px solid #fff;
    padding: 1px 5px;
    padding-top: 5px;
    background-color: #fff;
    border-radius: 10px;
    .top-con{
        width: 150px;
        height: 70px;
        line-height: 70px;
        text-align: center;
        font-size: 20px;
        background-color: rgb(122, 154, 165);
        text-decoration: none;
        color: #fff;
        border-radius: 10px;
    }
    .top-con:hover{
        // color: black;
        background-color: rgb(193, 206, 214);
    }
    .top-img{
        width: 150px;
        height: 150px;
        border: 1px solid #eee;
        border-radius: 50%;
        box-shadow: 0 0 10px #ddd;
        padding: 10px;
        background-color: #fff;
        position: absolute;
        left: 50%;
        transform: translate(-50%,-35%);
        z-index: 9;
        img{
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background-color: #ddd;
        }
    }
}
.forms{
    width: 450px;
    // height: 400px;
    background-color: #fff;
    position: absolute;
    border-radius: 10px;

}
.active{
    background-color:rgb(193, 206, 214) ;
    color: white;
}
</style>